<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Resource Access, Backup, and Restoration Failed Because the Account Is Locked (Applicable to OLTP OPS)">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164657742.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002164657726">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Resource Access, Backup, and Restoration Failed Because the Account Is Locked (Applicable to OLTP OPS)</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002164657726"></a><a name="EN-US_TOPIC_0000002164657726"></a>

<h1 class="topictitle1">Resource Access, Backup, and Restoration Failed Because the Account Is Locked (Applicable to OLTP OPS)</h1>
<div><div class="section"><h4 class="sectiontitle">Symptom</h4><p>Operations, such as resource access, backup, and restoration, on GaussDB failed.</p>
</div>
<div class="section"><h4 class="sectiontitle">Possible Causes</h4><p>Resource access, backup, or restoration fails because the TPOPS account is locked.</p>
</div>
<div class="section"><h4 class="sectiontitle">Troubleshooting</h4><ol><li><span>Log in to the TPOPS server node and run the <strong>su - dmuser</strong> command to switch to user <strong>dmuser</strong>.</span></li><li><span>Run the following commands as user <strong>dmuser</strong> to connect to Info Store:</span><p><pre class="screen">source $HOME/.dmbashrc
source $DM_HOME/primdb/.infostore
gsql -d primdb -p <em>22202</em> -r -U <em>apprim</em> -W <em>password</em></pre>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p>In the gsql command, <strong>-p</strong> and <strong>-U</strong> indicate the primdb port and the primdb user <strong>admin</strong> respectively. The default values are used in the command example. If the values are modified, you can view the installation configuration file <strong>install-default.conf</strong> in the directory where the TPOPS installation package is stored, and obtain the values from parameters <strong>primdb.listen.port</strong> and <strong>primdb.dbuser</strong>. You can refer to the following command output.</p>
<pre class="screen">...  
primdb.listen.port = 22202 ### (Range: 1024 - 65535; Default: 22202)  
primdb.dbuser = apprim ### admin User for Primary DB  
...</pre>
</div></div>
</p></li><li><span>Run the following command to unlock user <strong>admin</strong>:</span><p><pre class="screen">UPDATE USER_MANAGEMENT.GA_PL_AU_USER SET LOCKED_DATE='',LOCK_STATUS=0, LOGIN_ATTEMPT=0, LOCKED_REASON='' WHEREUSERNAME='admin'; </pre>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002164657742.html">FAQs</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>